package other;

import org.apache.commons.codec.digest.DigestUtils;

import play.Play;

public class Utils {
    public static String assetToPhysicalPath(String url) {
        return url.replace("assets/", "public/images/");
    }

    public static String getSaltedPassword(String password) {
        String salt = Play.application().configuration().getString("application.salt");
        return DigestUtils.shaHex(salt + password);
    }
}
